<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ page import="com.hzqy.commons.utils.ConstantUtils" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>节目修改</title>
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/defalut.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/public.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/ddspstyle.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/icon.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/WdatePicker/skin/WdatePicker.css">
<link rel="stylesheet" type="text/css" href="../../static/stream/css/stream-v1.css">
<link rel="stylesheet" type="text/css" href="../../static/bootstrap-3.3.5/css/bootstrap.min.css">

<script type="text/javascript" src="../../static/js/jquery.min.js"></script>
<script type="text/javascript" src="../../static/js/jquery.easyui.min.js"></script>
<script type="text/javascript"	src="../../static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../static/js/jquery.validate.js"></script>
<script type="text/javascript" src="../../static/stream/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../static/stream/js/stream-v1.js"></script>
<script type="text/javascript" src="../../static/js/index.js"></script>
<script type="text/javascript" src="../../static/js/WdatePicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" charset="utf-8" src="../../static/js/Base64.js"></script>
	<script type="text/javascript" charset="utf-8" src="../../static/js/beforeData.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<%
	String para =request.getParameter("f_cc_id");
	int f_cc_id = 0;
	if(para != null)
		f_cc_id = Integer.valueOf(para);
	String []nonceObj=ConstantUtils.getNonceObject();
%>
<script type="text/javascript">
	var ids = "";
	var f_cc_id = <%=f_cc_id%>;
	var _t;
	$(function() {
		$.ajax({
			url:"../../content/select_content.do?f_cc_id="+f_cc_id,
			success:function(data) {
				data = JSON.parse(data);
				$("#f_cc_id").val(data.f_cc_id);
				$("#f_cc_code").val(data.f_cc_code);
				$("#f_cc_name").val(data.f_cc_name);
				$("#bind_categoryName").val(data.catalogNames);
				$("#f_cc_company_id").val(data.f_cc_companyid);
				ids = data.f_cc_companyid;
				$("#f_cc_company_name").val(data.f_cc_companyname);
				$("#f_cc_searchname").val(data.f_cc_searchname);
				$("#f_cc_tags").val(data.f_cc_tags);
				$("#f_cc_type").val(data.f_cc_type);
				$("#f_cc_desc").val(data.f_cc_desc);
				$("#f_cc_onlinedate").val(data.f_cc_onlinedate.substring(0,19));
				$("#f_cc_offlinedate").val(data.f_cc_offlinedate.substring(0,19));
				$("#f_cc_director").val(data.f_cc_director);
				$("#f_cc_actors").val(data.f_cc_actors);
				$("#f_cc_screenwriter").val(data.f_cc_screenwriter);
				$("#f_cc_end").val(data.f_cc_end);
				$("#f_cc_seriescount").val(data.f_cc_seriescount);
				$("#f_cc_obligate1").val(data.f_cc_obligate1);
				$("#f_cc_obligate2").val(data.f_cc_obligate2);
				$("#f_cc_obligate3").val(data.f_cc_obligate3);
				$("#f_cc_obligate4").val(data.f_cc_obligate4);
				$("#f_cc_interfaceType").val(data.f_cc_interfaceType);
				$("#f_cc_outputType").val(data.f_cc_outputType);
				$("#f_cc_medioType").val(data.f_cc_medioType);
				$("#f_cc_medioCommonFlag").val(data.f_cc_medioCommonFlag);
				if(data.f_cc_medioCommonFlag==2){
					$("#f_cc_medioCommonFlag_").attr("checked","checked");
				}
				$("#f_cc_cpid").val(data.f_cc_cpid);
				
				$("#f_cc_definitionflag").val(data.f_cc_definitionflag);
				$("#f_cc_duration").val(data.f_cc_duration);
				$("#f_cc_mediacode").val(data.f_cc_mediacode);
				$("#f_cc_transcodePath").val(data.f_cc_transcodePath);
				$("#f_cc_trancodeFinishPath").val(data.f_cc_trancodeFinishPath);
				$("#fileName_").html(data.f_cc_transcodePath);
				if(data.f_cc_isfree == 1){
					$("#isfree").checked=true;
				}
				$("#f_cc_transcodeFlag").val(data.f_cc_transcodeFlag);
				if(data.f_cc_transcodeFlag == 1){
					$("#f_cc_transcodeFlag_").attr("checked","checked");
				}
				if(data.f_cc_status==11){//待处理
					$("#tg").show();
					$("#btg").show();
				}
				try{
					var ue = UE.getEditor('f_cc_desc');
				}catch(e){
					console.info(e);
				}
				setTimeout(function(){
					var pictrue= arrayToJsonBefore();
					beforeData(data, f_cc_id, pictrue, "../../beforeData.do");
				},1000);
			}
		});
		
		$("#contentForm").validate({
			rules: {
				f_cc_name: {
					required: true,
					minlength: 1,
					maxlength: 50
				},
				f_cc_companyname: {
					required: true
				},
				f_cc_onlinedate: {
					required: true,
					date: true
				},
				f_cc_offlinedate: {
					required: true,
					date: true
				},
				f_cc_seriescount: {
					required: true
				},
				f_cc_obligate3: {
					required: true
				},
				f_cc_obligate4: {
					required: true
				}
				
			},
			messages: {
				f_cc_name: {
					required: "请输入节目名称",
					minlength: "节目名称不能少于1位",
					maxlength: "节目名称不能超过50位"
				},
				f_cc_companyname: {
					required: "请选择组织",
				},
				f_cc_onlinedate: {
					required: "请选择上线日期",
					date: "请输入正确的日期"
				},
				f_cc_offlinedate: {
					required: "请选择下线日期",
					date: "请输入正确的日期"
				},
				f_cc_seriescount: {
					required: "请输入节目名称"
				},
				f_cc_obligate3: {
					required: "请输入节目"
				},
				f_cc_obligate4: {
					required: "请输入节目"
				}
			}
			
		});
		
		moreItemSwitch();
		$("#f_cc_seriescount").val(1);
		$("#f_cc_obligate3").val(0);
		$("#f_cc_obligate4").val(0);
		$("#f_cc_medioCommonFlag_").change(function(){
			if($(this).is(':checked')){
			　　　$("#f_cc_medioCommonFlag").attr('value','2');
			}else{
				$("#f_cc_medioCommonFlag").attr('value','1');
			}
		});
		$("#f_cc_transcodeFlag_").change(function(){
			if($(this).is(':checked')){
			　　　$("#f_cc_transcodeFlag").attr('value','1');
			}else{
				$("#f_cc_transcodeFlag").attr('value','0');
			}
		});
		
		$('#myModal').modal('hide');
	    $('#myModal').on('hide.bs.modal', function(){
	    	$(this).find('.modal-body').html('');
	    });
	    var config = {
				enabled: true, /** 是否启用文件选择，默认是true */
				customered: true,
				multipleFiles: false, /** 是否允许同时选择多个文件，默认是false */	
				autoRemoveCompleted: true, /** 是否自动移除已经上传完毕的文件，非自定义UI有效(customered:false)，默认是false */
				autoUploading: true, /** 当选择完文件是否自动上传，默认是true */
				fileFieldName: "FileData", /** 相当于指定<input type="file" name="FileData">，默认是FileData */
				maxSize: 20737418240, /** 当_t.bStreaming = false 时（也就是Flash上传时），2G就是最大的文件上传大小！所以一般需要 */
				simLimit: 1, /** 允许同时选择文件上传的个数（包含已经上传过的） */
				extFilters: [".mp4", ".mpg", ".mpeg", ".avi", ".vob", ".wmv", ".mov",".ts" /* ".flv", ".rm", ".rmvb", ".ts" */], /** 默认是全部允许，即 [] */
				browseFileId : "i_select_files", /** 文件选择的Dom Id，如果不指定，默认是i_select_files */
				browseFileBtn : "<div>请选择文件</div>", /** 选择文件的按钮内容，非自定义UI有效(customered:false) */
				dragAndDropArea: "i_stream_dropzone",
				filesQueueId : "i_stream_files_queue", /** 文件上传进度显示框ID，非自定义UI有效(customered:false) */
				filesQueueHeight : 450, /** 文件上传进度显示框的高，非自定义UI有效(customered:false)，默认450px */
				messagerId : "i_stream_message_container", /** 消息框的Id，当没有自定义onXXX函数，系统会显示onXXX的部分提示信息，如果没有i_stream_message_container则不显示 */
				frmUploadURL : "../../fd;", /** Flash上传的URI */
		      	uploadURL : "../../upload",
				tokenURL : "../../tk",
				onSelect: function(files) {
				},
				onMaxSizeExceed: function(file) {
					alert("文件[name="+file.name+", size="+file.formatSize+"]超过文件大小限制‵"+file.formatLimitSize+"‵，将不会被上传！<br>");
				},
				onFileCountExceed : function(selected, limit) {
					$('#myModal').modal('show');
					$('#myModal .modal-body').append("同时最多上传<strong>"+limit+"</strong>个文件，但是已选择<strong>"+selected+"</strong>个<br>");
				},
				onExtNameMismatch: function(info) {
					alert("<strong>"+info.name+"</strong>文件类型不匹配[<strong>"+info.filters.toString() + "</strong>]<br>");
				},
				onAddTask: function(file) {
					var file = '<tr id="' + file.id + '" class="template-upload fade in">' +
				     '<td><span class="preview">'+file.id+'</span></td>' +
				     '<td><p class="name">' + file.name + '</p>' +
				     '    <div><span class="label label-info">进度：</span> <span class="message-text"></span></div>' +
				     '    <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">' +
					'			<div class="progress-bar progress-bar-success" title="" style="width: 0%;"></div>' +
					'		</div>' +
				     '</td>' +
				     '<td><p class="size">' + file.formatSize + '</p>' +
				     '</td>' +
				     '<td>' +
				     '<div class="btn-group">' +
				      //'' + 
				      '<button type="button" class="btn btn-xs btn-danger" onClick="javascript:_t.cancelOne(\'' + file.id + '\')"><i class="glyphicon glyphicon-remove"></i></button>' +
					  '</div>' +
				     '</td></tr>';
					$("#bootstrap-stream-container").append(file);
				},
				onUploadProgress: function(file) {
					var $bar = $("#"+file.id).find("div.progress-bar");
					$bar.css("width", file.percent + "%");
					var $message = $("#"+file.id).find("span.message-text");
					$message.text("已上传:" + file.formatLoaded + "/" + file.formatSize + "(" + file.percent + "%" + ") 速  度:" + file.formatSpeed);
				},
				onStop: function() {
				},
				onCancel: function(file) {
					$("#"+file.id).remove();
					/* var $total = $("#stream_total_progress_bar");
					$total.find("div.progress-bar").css("width", file.totalPercent + "%");
					$total.find("span.stream_total_size").text(file.formatTotalLoaded + "/" + file.formatTotalSize);
					$total.find("span.stream_total_percent").text(file.totalPercent + "%"); */
				},
				onCancelAll: function(numbers) {
					$("#i_info_tips > span.text-message").append(numbers + " 个文件已被取消上传！！！");
				},
				onComplete: function(file) {
					/** 100% percent */
					var $bar = $("#"+file.id).find("div.progress-bar");
					$bar.css("width", file.percent + "%");
					var $message = $("#"+file.id).find("span.message-text");
					$message.text("已上传:" + file.formatLoaded + "/" + file.formatSize + "(" + file.percent + "%" + ")");
					/** remove the `cancel` button */
					var $cancelBtn = $("#"+file.id).find("td:last > span");
					$cancelBtn.remove();
					
					var now = new Date();
					var onLineTimeStr = now.getFullYear()+"-"+(now.getMonth()+1)+"-"+now.getDate() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds();
					var offLineTimeStr = (now.getFullYear()+10)+"-"+(now.getMonth()+1)+"-"+now.getDate() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds();
					var rename = eval("(" + file.msg + ")").rename;
					
					$("#f_cc_transcodePath").val(rename);
					$("#fileName_").html(rename);
					$('#myModal').modal('show');
					$('#myModal .modal-body').append(file.name + "上传成功!<br/>");
				},
				onQueueComplete: function(msg) {
				},
				onUploadError: function(status, msg) {
					$("#i_info_tips > span.text-message").append(msg + ", 状态码:" + status);
				}
			};
		_t = new Stream(config);
		/** 不支持拖拽，隐藏拖拽框 */
		$("#i_stream_dropzone").hide();
		/** Flash最大支持2G */
		if (!_t.bStreaming) {
			//_t.config.maxSize = 2147483648;
			_t.config.maxSize = 10737418240
		}
	});

	function _gt(){
		$.ajax({
			url:"../../content/update_content_status.do?f_cc_id=<%=f_cc_id%>&f_cc_status=1&stime=<%=nonceObj[0]%>&sign=<%=nonceObj[1]%>",
			success:function(data) {
				data = JSON.parse(data);
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
			}
		});
	}
	
	function _btg(){
		$.ajax({
			url:"../../content/update_content_status.do?f_cc_id=<%=f_cc_id%>&f_cc_status=12&stime=<%=nonceObj[0]%>&sign=<%=nonceObj[1]%>",
			success:function(data) {
				data = JSON.parse(data);
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
			}
		});
	}
	
	function _submitFm() {
		if(document.getElementById("isfree").checked){
			document.getElementById("f_cc_isfree").value = 1;
		}
		if(ids!=$("#f_cc_company_id").val()){
			$("#status").val("change");
		}
		arrayToJson();
		if($("#contentForm").validate().form()) {
		app_ajax('../../content/update_content.do', $("#contentForm").serialize(), function(data) {
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
		});
	  }
	}
	
	var open = true;
	function moreItemSwitch(){
		if(open){
			$(".more_attr_hide").hide();
			$("#switchItemBtn").find(".l-btn-text").text("显示更多节目");
			$("#switchItemBtn").find(".l-btn-icon.icon-remove").removeClass("icon-remove").addClass("icon-add");
		}else{
			$(".more_attr_hide").show();
			$("#switchItemBtn").find(".l-btn-text").text("隐藏更多节目");
			$("#switchItemBtn").find(".l-btn-icon.icon-add").removeClass("icon-add").addClass("icon-remove");
		}
		open = !open;
	}
	
	function castSelect(id){
		openDialog($('#cast_list'),'content_cast.jsp?id='+id);
	}
	
	function bind() {
		openDialog($('#org_list'),'../behavior_control/org_update.jsp?idField=f_cc_company_id&nameField=f_cc_company_name');
	}
	function category_bind() {
		openDialog($('#dlg'),'content_bind.jsp?f_cc_id='+f_cc_id);
	}
</script>
</head>

<body class="overfwidth">
	<div class="barnavtop">您所在的位置：节目管理 &gt; 节目修改</div>
	<div id="workspace">
		<!--主体 开始-->
		<div id="container">
			<div class="editspace">
				<form id="contentForm" class="cmxform" enctype="multipart/form-data" name="formName">
					<input type="hidden" id="f_cc_id" name="f_cc_id" value="" />
					<input type="hidden" id="f_cc_status" name="f_cc_status" value="0"/>
					<input type="hidden" id="f_cast_id" name="f_cast_id" value=""/>
					<input type="hidden" id="f_cc_isfree" name="f_cc_isfree" value="0"/>
					<input type="hidden" id="f_cc_definitionflag" name="f_cc_definitionflag" value=""/>
					<input type="hidden" id="f_cc_transcodePath" name="f_cc_transcodePath" value=""/>
					<input type="hidden" id="f_cc_trancodeFinishPath" name="f_cc_trancodeFinishPath" value=""/>
					<input type="hidden" id="sourceFlag" name="sourceFlag" value="5"/>
					<legend>节目修改</legend>
					<!-- <a id="switchItemBtn" class="easyui-linkbutton" style="position: fixed; top: 70px; right: 0; background: #D2E0F2; border: 1px solid #95B8E7;" data-options="iconCls:'icon-remove'" plain="true" href="javascript:moreItemSwitch();">隐藏更多节目</a> -->
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>节目名称:
									</td>
									<td width="30%">
										<input id="f_cc_name" name="f_cc_name" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_name_tip" class="tip"></span>
									</td>
									<td width="20%" align="right">
										分类绑定:
									</td>
									<td width="30%" colspan="3">
										<input readonly="readonly" id="bind_categoryName"	style="width: 150px;" value="" placeholder="选择查看" class="yl_inp yw_name" />
										
										<input name="bind_categoryDelStr" id="bind_categoryDelStr" type="hidden" value="" />
										<input name="bind_categoryInStr" id="bind_categoryInStr" type="hidden" value="" />  
										<a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="category_bind();">选择</a>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
				
				
						<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td class="hide-item" width="20%" align="right">
										&nbsp;云转码输出:
									</td>
									<td class="hide-item" width="30%">
										<select id="f_cc_outputType" name="f_cc_outputType" style="width: 150px;">
										<option value="1">720*576</option>
										<option value="2">1280*720</option>
										<option value="3">1920*1080</option>
										</select>
									</td>
									<td width="20%" align="right">
										是否转码:
									</td>
									<td width="30%">
										<input type="checkbox" id="f_cc_transcodeFlag_"	style="width: 150px;"  />
										<input name="f_cc_transcodeFlag" id="f_cc_transcodeFlag" type="hidden" value="0" />  
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										&nbsp;节目类型:
									</td>
									<td width="30%">
										<select id="f_cc_type" name="f_cc_type" style="width: 150px;">
											<option value="0">--请选择--</option>
											<option value="2">电影</option>
											<option value="3">直播</option>
											<option value="4">图文</option>
											<option value="5">链接</option>
											<option value="110">其他</option>
										</select>
									</td>
									<td width="20%" align="right">
										<span class="red">*</span>组织选择:
									</td>
									<td width="30%">
										<input name="f_cc_companyname" id="f_cc_company_name" readonly="readonly"	style="width: 150px;" value="" class="yl_inp yw_name" />
										<input name="f_cc_companyid" id="f_cc_company_id" type="hidden" value="" />  
										<input name="status" id="status" type="hidden" value="nochange" />  
										<!-- <select id="f_cc_companyid" name="f_cc_companyid" style="width: 150px;">
										</select> -->
										<!-- <span id="f_cc_companyid_tip" class="tip"></span> -->
										<a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="bind();">选择</a>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
							<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										预留字段1:
									</td>
									<td width="30%">
										<textarea id="f_cc_obligate1" name="f_cc_obligate1" style="width: 150px; height: 50px;"></textarea>
									</td>
									<td width="20%" align="right">
										预留字段2:
									</td>
									<td width="30%">
										<textarea id="f_cc_obligate2" name="f_cc_obligate2" style="width: 150px; height: 50px;"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
						<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										接口类型:
									</td>
									<td width="30%">
										<select name="f_cc_interfaceType" id="f_cc_interfaceType" style="width: 150px;">
										<option value="1">华为中兴</option>
										<option value="2">中兴</option>
										<option value="3">华为</option>
										</select>
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;视频属性:
									</td>
									<td class="hide-item" width="30%">
										<select id="f_cc_medioType" name="f_cc_medioType" style="width: 150px;">
										<option value="1">戏曲</option>
										<option value="2">党建</option>
										<option value="3">教育</option>
										<option value="4">其他</option>
										<option value="5">体育</option>
										<option value="6">美食</option>
										<option value="7">娱乐</option>
										<option value="8">医疗</option>
										<option value="9">新闻</option>
										<option value="10">企业宣传 </option>
										</select>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										CPID:
									</td>
									<td width="30%">
										<input style="width: 150px;" name="f_cc_cpid" id="f_cc_cpid" value="" class="yl_inp yw_name" />
									</td>
									<td width="20%" align="right">
										是否共享:
									</td>
									<td width="30%">
										<input type="checkbox" id="f_cc_medioCommonFlag_"	style="width: 150px;"  />
										<input name="f_cc_medioCommonFlag" id="f_cc_medioCommonFlag" type="hidden" value="1" />  
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									
									<td width="20%" align="right">
										&nbsp;时长:
									</td>
									<td width="30%" align="left">
										<input id="f_cc_duration" name="f_cc_duration" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_duration_tip" class="tip"></span>
									</td>
									<!-- <td  width="20%"></td>
									<td width="30%" ></td> -->
									<td width="20%" align="right">
										&nbsp;节目Code:
									</td>
									<td width="30%">
										<input id="f_cc_code" name="f_cc_code" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_code_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<div class="more_attr_hide">
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td class="hide-item" width="20%" align="right">
										&nbsp;查询名称:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_searchname" name="f_cc_searchname" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_searchname_tip" class="tip"></span>
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;标签:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_tags" name="f_cc_tags" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_tags_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td class="hide-item" width="20%" align="right">
										&nbsp;播放CODE:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_mediacode" name="f_cc_mediacode" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_mediacode" class="tip"></span>
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;导演:
									</td>
									<td class="hide-item" width="30%">
											<input id="f_cc_director" name="f_cc_director" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_director_tip" class="tip"></span>
										<!-- <a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="castSelect(3)">选择</a> --></td>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										上线时间:
									</td>
									<td width="30%">
										<input id="f_cc_onlinedate" name="f_cc_onlinedate" type="text" onClick="WdatePicker({skin:'default',dateFmt: 'yyyy-MM-dd HH:mm:ss'})" style="width: 150px;" value="2011-01-01 01:01:01" class="yl_inp yw_name" />
										<span id="f_cc_onlinedate" class="tip"></span>
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;演员列表:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_actors" name="f_cc_actors" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_actors_tip" class="tip"></span>
										<!-- <a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="castSelect(2)">选择</a> --></td>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										下线时间:
									</td>
									<td width="30%">
										<input id="f_cc_offlinedate" name="f_cc_offlinedate" type="text" onClick="WdatePicker({skin:'default',dateFmt: 'yyyy-MM-dd HH:mm:ss'})" style="width: 150px;" value="2111-01-01 01:01:01" class="yl_inp yw_name" />
										<span id="f_cc_offlinedate" class="tip"></span>
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;编剧:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_screenwriter" name="f_cc_screenwriter" style="width: 150px;" value="" class="yl_inp yw_name" />
										<span id="f_cc_screenwriter_tip" class="tip"></span>
										<!-- <a id="12" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);"
											onclick="castSelect(1)">选择</a> --></td>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									
									<td class="hide-item" width="20%" align="right">
										<span class="red">*</span>总集数:
									</td>
									<td class="hide-item" width="30%">
										<input id="f_cc_seriescount" name="f_cc_seriescount" style="width: 150px;" value="" class="yl_inp yw_seriescount" />
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem hide-item">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										预留字段3:
									</td>
									<td width="30%">
										<input id="f_cc_obligate3" name="f_cc_obligate3" value="" style="width: 150px;" class="yl_inp yw_name"></input>
										<span id="f_cc_obligate3_tip" class="tip"></span>
									</td>
									<td width="20%" align="right">
										预留字段4:
									</td>
									<td width="30%">
										<input id="f_cc_obligate4" name="f_cc_obligate4" value="" style="width: 150px;" class="yl_inp yw_name"></input>
										<span id="f_cc_obligate4_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset class="hide-item">
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										是否免费:
									</td>
									<td width="30%">
										<input id="isfree" name="isfree" type="checkbox" style="width: 18px; height: 18px; line-height: 18px; border: #AEAEAC solid 1px; vertical-align: middle;"/>免费
									</td>
									<td class="hide-item" width="20%" align="right">
										&nbsp;完结状态:
									</td>
									<td class="hide-item" width="30%">
										<select id="f_cc_end" name="f_cc_end" style="width: 150px;">
				                    		<option value="0">未完结</option>
				                    		<option value="1">完结</option>
				                    	</select>									
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<!-- <fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										&nbsp;清晰度:
									</td>
									<td width="30%">
										<input type="checkbox" id="definition_sd" name="definitionflag" value="1"/><label for="definition_sd" style="width: 60px;">720x576</label>
										<input type="checkbox" id="definition_phd" name="definitionflag" value="10"/><label for="definition_phd" style="width: 60px;">1280x720</label>
										<input type="checkbox" id="definition_hd" name="definitionflag" value="100"/><label for="definition_hd" style="width: 60px;">1920x1080</label>
									</td>
								</tr>
							</table>
						</div>
					</fieldset> -->
					</div>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="40%" align="right">
										<jsp:include page="../../pictures/pictures_update_industry.jsp" flush="true">
											<jsp:param value="内容" name="picType"/>
											<jsp:param value="<%=f_cc_id %>" name="f_cp_relationid"/>
										</jsp:include>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="40%" align="center">
									 提醒建议：标清终端单图100KB以下，高清终端单图300K以下。否则可能会出现终端设备无法显示图片或其它异常现象。
									</td>
								</tr>
							</table>
						</div>
					</fieldset>					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="40%" align="right">
										<div class="container">
												<div class="row clearfix">
													
														<div class="page-header">
														<div class="col-md-12 left">
															<span>视频文件名：</span><span id="fileName_"></span><br/>
														</div>
													</div>
													<div class="page-body">
														<div class="col-md-12 column">
															<div id="upload_alert" class="alert alert-danger" style="font-size:15px;display:none;">
																<a href="#" class="close" data-dismiss="alert">
																	&times;
																</a>
																<div id="upload_alert_inner"></div>
															</div>
												
															<div class="dropzone dz-clickable" id="i_stream_dropzone">
															</div>
															<div class="btn-toolbar" role="toolbar">
																<div class="btn-group">
																	<button type="button" class="btn btn-default" id="i_select_files">更新文件</button>
																	<button type="button" class="btn btn-default" onclick="javascript:_t.upload();">开始上传</button>
																	<button type="button" class="btn btn-default" onclick="javascript:_t.stop();">暂停上传任务</button>
																</div>
															</div>
															<table id="data_table" class="table tablesorter">
																<tbody id="bootstrap-stream-container">
																</tbody>
															</table>
														</div>
													</div>	
											</div>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="10%" align="right">
										&nbsp;节目简介:
									</td>
									<td width="90%">
										<textarea id="f_cc_desc" name="f_cc_desc" style="width: 95%; height: 350px;"></textarea>
										<span id="f_cc_desc_tip" class="tip"></span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<input type="hidden" name="stime" value="<%=nonceObj[0]%>"/>
					<input type="hidden" name="sign" value="<%=nonceObj[1]%>"/>
					<div class="toolbar" style="text-align: center;">
						<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0);" onclick="_submitFm()">保存</a> <a
							href="javascript:void(0);" data-options="iconCls:'icon-cancel'"
							class="easyui-linkbutton"
							onclick="javascript:parent.$('#dlg').dialog('close')">取消</a>
							
							<a id="tg" style="display:none;" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0);" onclick="_gt()">通过</a>
							<a id="btg" style="display:none;" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'"
							href="javascript:void(0);" onclick="_btg()">不通过</a>
					</div>
				</form>
			</div>
			
		</div>
		<!--主体 结束-->
	</div>
	<div id="cast_list" class="easyui-dialog"
		style="width: 600px; height: 470px; padding-top: 0px;"
		data-options="title:'模型选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="dlg" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'企业管理', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="org_list" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'客户选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<!-- 模态框（Modal） -->
		<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		    <div class="modal-dialog">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		                <h4 class="modal-title" id="myModalLabel" style="font-weight: bold;">视频上传通知</h4>
		            </div>
		            <div class="modal-body"></div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
		            </div>
		        </div><!-- /.modal-content -->
		    </div><!-- /.modal-dialog -->
		</div>
	<!-- /.modal -->
	</body>
</html>
